<!--  -->
<template>
  <view class="container">
    <aqie-input placeholder="用户名" :value="name" @oname="oname" method='oname'></aqie-input>
    <aqie-input placeholder="密码" :value="password" @opwd="opwd" method='opwd'></aqie-input>
    <form @submit="formSubmit">
      <input name="name" v-model="name" hidden/>
      <input name="password" v-model="password" hidden/>
      <button form-type="submit">Submit</button>
    </form>
    
 
  </view>
</template>

<script>
import aqieInput from '@/components/base/aqie-input'

export default {
  data () {
    return {
      name:"啊切",
      password:'123'
    };
  },

  components: {
    aqieInput
  },

  computed: {},

  mounted() {},

  methods: {
    oname(e){
      this.name = e
    },
    opwd(e){
      this.password = e
    },
    formSubmit(e){
      console.log(e.detail.value)
    }
  }
}

</script>
<style lang='scss' scoped>
</style>